<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>欢迎登录 <span th:text="${#session.getAttribute('user').userName}"></span></div>
<button onclick="exit()">退出系统</button>
</body>
</html>